<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title; ?> - EKOKIOSK</title>
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>css/theme4.css" />
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>css/style.css" />
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>css/jquery.ui.base.css" />
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>css/jquery.ui.theme.css" />

<script language="javascript" type="text/javascript" src="<?php echo base_url(); ?>js/jQuery1.7.2.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo base_url(); ?>js/jquery.ui.core.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo base_url(); ?>js/jquery.ui.datepicker.js"></script>
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="css/ie-sucks.css" />
<![endif]-->
<script language="javascript">
	var jq = jQuery.noConflict();
	jq(document).ready(function(){
		jq('.btcancel').click(function(){
			var a = jq('div#panel ul li a').attr('href');	
			window.location = a;	
		});		
	});
</script>
</head>

<body>
	<div id="container">
		<div id="header">
        	<h2><?php echo $title; ?></h2>
			<div id="topmenu">
            	<ul>			
					<?php $module_nav = $this->session->userdata('logged_in');
						$glo_gid = $module_nav['gid'];	
						$module_nav_item = $module_nav['role'];
						$nav_current_item = $this->uri->segment(1);
						
					?>
					<?php if($glo_gid == 1): ?>
					<li <?php if($nav_current_item=="module"):?> class="current" <?php endif;?> ><a <?php if($nav_current_item=="module"):?> class="current" <?php endif;?> href="<?php echo site_url("module"); ?>">Modules</a></li>
					<li <?php if($nav_current_item=="group"):?> class="current" <?php endif;?>><a <?php if($nav_current_item=="group"):?> class="current" <?php endif;?> href="<?php echo site_url("group"); ?>">Group</a></li>
					<li <?php if($nav_current_item=="users"):?> class="current" <?php endif;?>><a <?php if($nav_current_item=="users"):?> class="current" <?php endif;?> href="<?php echo site_url("users"); ?>">Users</a></li>
					<li <?php if($nav_current_item=="assign"):?> class="current" <?php endif;?>><a <?php if($nav_current_item=="assign"):?> class="current" <?php endif;?> href="<?php echo site_url("assign"); ?>">Assign</a></li>
					<li <?php if($nav_current_item=="location"):?> class="current" <?php endif;?>><a <?php if($nav_current_item=="location"):?> class="current" <?php endif;?> href="<?php echo site_url("location"); ?>">Location</a></li>
					<li <?php if($nav_current_item=="kiosk"):?> class="current" <?php endif;?>><a <?php if($nav_current_item=="kiosk"):?> class="current" <?php endif;?> href="<?php echo site_url("kiosk"); ?>">Kiosk</a></li>
					<li <?php if($nav_current_item=="fund"):?> class="current" <?php endif;?>><a <?php if($nav_current_item=="fund"):?> class="current" <?php endif;?> href="<?php echo site_url("fund"); ?>">Fund</a></li>
					<li <?php if($nav_current_item=="ads"):?> class="current" <?php endif;?>><a <?php if($nav_current_item=="ads"):?> class="current" <?php endif;?> href="<?php echo site_url("ads"); ?>">Ads</a></li>
					<li <?php if($nav_current_item=="trivia"):?> class="current" <?php endif;?>><a <?php if($nav_current_item=="trivia"):?> class="current" <?php endif;?> href="<?php echo site_url("trivia"); ?>">Trivia</a></li>
					
					
					<?php else: ?>
						<?php
							
						?>
						<?php if(count($module_nav_item)>0): ?>
						<?php foreach($module_nav_item as $v): ?>
							<li><a href="<?php echo site_url($v['route']); ?>"><?php echo $v['name'];  ?></a></li>
						<?php endforeach; ?>
						<?php endif; ?>
					<?php endif; ?>
					
				</ul>
			</div>
		</div>